import baseUrl from "./baseUrl";
export default (url, data = {}, method = "GET") => {
    return new Promise((resolve, reject) => {
        uni.request({
            url: baseUrl.baseUrl + url,
            data,
            method,
            success: res => {
                // console.log(res);
                resolve(res.data)
            },
            fail: err => {
                reject(err)
            }
        })
    })

}